package yxy.cherry.game.base.mq.instance;

import yxy.cherry.game.base.mq.MqMessage;

import java.util.Date;

/** 角色离线 */
public class MqMsg_RoleLogout extends MqMessage {

	@Override
	public String tags() {
		return "RoleLogout";
	}

	private long uid;// 用户id
	private String code;// 角色code
	private Date time;// 离线时间
	private long duration;// 在线时长

	private int serverid;// 服务器id

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public int getServerid() {
		return serverid;
	}

	public void setServerid(int serverid) {
		this.serverid = serverid;
	}

	public void setDuration(long duration) {
		this.duration = duration;
	}

	public long getDuration() {
		return duration;
	}

}
